<?
    final class Principio_View_Helper_Spa extends Zend_View_Helper_Abstract
    {
        public function spa(PrincipioLab_LinkedList $collection_spa)
        {
            $html = "";

            foreach ($collection_spa as $model_spa)
            {
                $html .= "<li><a href=\"\" onClick=\"ajaxSpa({id: ".$model_spa->getID().", action: 'view', use_inner: true, no_apply: true}); return false;\">".
                    "<nobr>".$model_spa->getIP()." [".$model_spa->getMAC()."]</nobr></a></li>";
            };

            $html .= "<li class=\"add_item\"><a href=\"\" onClick=\"addItem({menu: 'spa', container: 'inner', company_id: ".$model_spa->getModelCompany()->getID().", type_id: ".$model_spa->getModelType()->getID()."}); return false;\">Add new device</a></li>";

            return $html;
        }
    };
?>